package com.example.second_home_work

import android.content.Context

class ProgramAdviser(private val context: Context) {
    fun getLanguage(feature:String):String{
        return when(feature){
            context.resources.getStringArray(R.array.spinner)[0] -> context.getString(R.string.quickOne)
            context.resources.getStringArray(R.array.spinner)[1] -> context.getString(R.string.easyOne)
            context.resources.getStringArray(R.array.spinner)[2] -> context.getString(R.string.newOne)
            context.resources.getStringArray(R.array.spinner)[3] ->  context.getString(R.string.objOne)
            else -> context.getString(R.string.unknown)
        }
    }
}